package com.atlin.project.service;


import com.atlin.project.model.domain.BiProducts;

import com.atlin.project.model.dto.biProduces.BiProductsQueryRequest;
import com.atlin.project.model.vo.biProduces.BiProductsVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
* @author atlin
* @description 针对表【bi_products(BI商品表)】的数据库操作Service
* @createDate 2024-11-25 16:25:56
*/
public interface BiProductsService extends IService<BiProducts> {


    void valid(BiProducts biProducts, boolean add);

    /**
     * 获取封装
     *
     * @param biProducts
     * @param request
     * @return
     */
    BiProductsVO getBiProductsVO(BiProducts biProducts, HttpServletRequest request);


    /**
     * 获取查询条件
     *
     * @param questionQueryRequest
     * @return
     */
    QueryWrapper<BiProducts> getQueryWrapper(BiProductsQueryRequest questionQueryRequest);

    /**
     * 分页获取封装
     *
     * @param questionPage
     * @param request
     * @return
     */
    Page<BiProductsVO> getBiProductsVOPage(Page<BiProducts> questionPage, HttpServletRequest request);


}
